{#<!DOCTYPE html>#}
{#<html lang="en">#}
{#<head>#}
{#    <meta charset="UTF-8">#}
{#    <title>{{ blog_type.type_name }}</title>#}
{#</head>#}
{#<body>#}
{#    <center><a href="{% url 'home' %}"><h3>个人博客</h3></a></center>#}
{#    {% for blog in blogs %}#}
{#        <a href="{% url 'blog_detail' blog.pk %}"><h3>{{ blog.title }}</h3></a>#}
{#        <p>作者：{{ blog.author }}</p>#}
{#        <p>发表日期：{{ blog.created_time|date:"Y-m-d H:n:s" }}</p>#}
{#        <p>发表日期：{{ blog.created_time|date:"Y-m-d G:n:s" }}</p>#}
{#        <p>分类：{{ blog.blog_type }}</p>#}
{#        <p>{{ blog.content|truncatechars:30 }}</p>#}
{#    {% empty %}#}
{#        <p>-- 暂无博客，敬请期待 --</p>#}
{#    {% endfor %}#}
{#    <p>一共有{{ blogs|length }}篇博客{{ blogs_count }}</p>#}
{#</body>#}
{#</html>#}

{#{% extends 'base.html' %}#}
{##}
{# 页面标题 #}
{#{% block title %}#}
{#    {{ blog_type.type_name }}#}
{#{% endblock %}#}
{##}
{#{% block nav_blog_active %}active{% endblock %}#}
{##}
{# 页面内容 #}
{#{% block content %}#}
{#    {% for blog in blogs %}#}
{#        <a href="{% url 'blog_detail' blog.pk %}"><h3>{{ blog.title }}</h3></a>#}
{#        <p>作者：{{ blog.author }}</p>#}
{#        <p>发表日期：{{ blog.created_time|date:"Y-m-d H:n:s" }}</p>#}
{#        <p>发表日期：{{ blog.created_time|date:"Y-m-d G:n:s" }}</p>#}
{#        <p>分类：{{ blog.blog_type }}</p>#}
{#        <p>{{ blog.content|truncatechars:30 }}</p>#}
{#    {% empty %}#}
{#        <p>-- 暂无博客，敬请期待 --</p>#}
{#    {% endfor %}#}
{#    <p>一共有{{ blogs|length }}篇博客{{ blogs_count }}</p>#}
{#{% endblock %}#}


{% extends 'blog/blog_list.html' %}
{% block title %}{{ blog_type.type_name }}{% endblock %}

{% block blog_list_title %}
    分类：{{ blog_type.type_name }}
    <a href="{% url 'blog_list' %}">查看全部博客</a>
{% endblock %}
